import { Entity, Column, PrimaryColumn } from 'typeorm';
import { BaseEntity } from '../../common/base.entity';


/**
 * 阿里云 Polardb
 *
 */
@Entity(PluginAliyunMonitorPolardbMetric.tableName)
export class PluginAliyunMonitorPolardbMetric {

  static tableName = 'plugin_aliyun_monitor_polardb_metric';

  @PrimaryColumn({ comment: 'id，格式：instanceId + nodeId + type + t' })
  id: string;
  @Column({ comment: '时间' })
  t: number;
  @Column({ comment: '阿里云Polardb集群 instanceId' })
  instanceId: string;
  @Column({ comment: '阿里云Polardb集群 instanceName' })
  instanceName: string;
  @Column({ comment: '阿里云Polardb集群 节点id' })
  nodeId: string;
  @Column({ comment: '平均值' })
  average: number;
  @Column({ comment: '阿里云Polardb集群 类型：mean_qps、mean_tps、mean_mps' })
  type: string;

}
